#include"Bitset.h"


void test1()
{
	hu::bitset<10> bt;
	bt.set(6);
	bt.set(4);
	bt.set(3);
	bt.set(10);
	bt.set(3);
	bt.set(2);
	bt.set(4);
	bt.set(5);
	bt.set(2);
	cout << bt.test(10) << " ";
	cout << bt.test(2) << " ";
	cout << bt.test(3) << " ";
	cout << bt.test(6) << " ";
	cout << bt.test(5) << " " << endl;
	bt.reset(4);
	bt.reset(5);
	bt.reset(2);
	cout << bt.test(10) << " ";
	cout << bt.test(2) << " ";
	cout << bt.test(3) << " ";
	cout << bt.test(6) << " ";
	cout << bt.test(5) << " ";
}

void test2()
{
	hu::twobitset<100> tbt;
	int arr[] = { 1,2,4,5,5,78,4,2,38,53,4,76,42,7,3,7 };
	for (auto e : arr)
	{
		tbt.set(e);
	}
	for (auto e : arr)
	{
		if (tbt.isonce(e))
			cout << e << " ";
	}
}
int main()
{
	test2();
	return 0;
}